package com.wu.cloudribbonfeign.api;

import com.wu.common.entity.ResultData;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author whx
 * @date 2021/7/19
 */
@FeignClient(name = "user-server")
public interface UserApi {

    @GetMapping("user/findAll")
    ResultData userFindAll();

    @PostMapping("user/update")
    ResultData userUpdate(@RequestParam("id") int id);

}
